package com.mars.app.wetchat;

import com.mars.app.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by pengshuo on 2018/1/10 23:05
 * Description: 存储在redis的微信缓存数据
 * Modified By:
 * Version:
 *
 * @author pengshuo
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WeChatStoreMsg extends BaseEntity{

    /** openId */
    private String openId;

    /**
     * 会话密钥 微信有效期为30天
     */
    private String session_key;

    /**
     * 用户在开放平台的唯一标识符
     */
    private String unionId;

    /**
     * 微信数据水印
     */
    private WaterMark watermark;

    public WeChatStoreMsg(String openId, String session_key,String unionId) {
        this.openId = openId;
        this.session_key = session_key;
        this.unionId = unionId;
    }

}
